<script>
	export default {
		onLaunch: function() {
			// 隐藏原生导航
			uni.hideTabBar();
			this.$store.commit('initTequipmentInfo', uni.$u.sys());
			let that = this;
			uni.getSystemInfo({
				success(res) {
					console.log(res);
					// 获取当前设备型号
					let phoneModel = res.deviceModel.replace(/\s+/g,"");
					that.$store.commit('currentPM', phoneModel);
					that.$store.commit('currentStateTop', res.safeArea.top);
				}
			})
		},
		onShow: function() {
			console.log('当 uni-app 启动，或从后台进入前台显示')
		},
		onHide: function() {
			console.log('当 uni-app 从前台进入后台')
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import url('@/static/css/main.css');
</style>
